package com.xxx.service;

import com.xxx.eneity.User;
import com.xxx.vo.UserVo;

import java.util.List;

public interface UserService {
    public User getUser(String userName, String password);

    public int register(User user);

    public boolean isUserExist(String userName);

    public int getCount(Integer userId, String oldpwd);

    public int editPassword(Integer userId, String newpwd);

    public int editUser(User user);

    public User getUserInfo(Integer userId);

    public List<UserVo> getUserList();


    public boolean isCodeExist(Integer code);

    public Integer getRole(Integer code);

    public boolean isCodeRegistered(Integer code);
}
